#include <QtGui/QApplication>
#include "MainWindow.h"
#include "MapWindow.h"

/// @todo add the tilesheet as a layout widget instead of a window by its self
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
//#include <crtdbg.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    a.setStyle(new QPlastiqueStyle);
    //a.setStyle(new QWindowsXPStyle);
    MainWindow *m = new MainWindow;
    m->show();

    /// @todo try to pass the GLuint instead of the iamge

    m->Init();

    int exit = a.exec();

    delete m; // hope this delets all the windows with it

    //_CrtDumpMemoryLeaks(); // just in case lol... i think qt has memory leaks lol
    return exit;
}
